#ifndef PLACE_H
#define PLACE_H

#include <string>

class Place {
public:
    int id;
    int parent_id; // 父地点ID，用于内部景点
    std::string name;
    std::string type;
    double latitude;
    double longitude;
    std::string description;
    std::string outline;
    std::string address;
    double popularity; // 热度
    double rating;     // 评价
    
    Place() : id(0), parent_id(0), latitude(0), longitude(0), popularity(0), rating(0) {}
    
    Place(int id, const std::string& name, const std::string& type, 
          double latitude, double longitude, const std::string& description,
          const std::string& outline = "", const std::string& address = "", int parent_id = 0,
          double popularity = 0, double rating = 0)
        : id(id), parent_id(parent_id), name(name), type(type),
          latitude(latitude), longitude(longitude), description(description),
          outline(outline), address(address), popularity(popularity), rating(rating) {}
};

#endif // PLACE_H 